package com.construction.engineering.accounting.controller;


import com.construction.engineering.accounting.common.result.BaseResult;
import com.construction.engineering.accounting.service.excel.ConversionExcelToDllService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/conversion")
public class ConversionDllController {

    @Resource
    private ConversionExcelToDllService conversionExcelToDllService;

    @GetMapping("/excel/dll")
    public BaseResult<String> conversionExcelToDll(@RequestParam("fileName") String fileName){
        return conversionExcelToDllService.conversionExcelToDll(fileName);
    }

}
